package cn.cmcc.online.smsapi.ui.web.data;

import android.util.Log;

import org.json.JSONArray;
import org.json.JSONObject;

/**
 * @author yangzhi 2016/5/18
 */
public class MenuData {

    public static String UI_VERSION = "201605101230";// ui版本号
    public static int SUPPORT_STATE = 6;// 支持web菜单

    /**
     * 获取默认支持的菜单数据
     * 
     * @return
     */
    public static JSONArray getDefaultMenuData() {
        try {
            JSONArray array = new JSONArray();
            JSONObject object = new JSONObject();
            object.put("name", "网页说明");
            object.put("action_data", "7B2274797065223A225745425F41424F5554227D");
            array.put(object);

            object = new JSONObject();
            object.put("name", "刷新");
            object.put("web_menu_type", "WM_RELOAD");
            object.put("action_data", "7B7D");
            array.put(object);

            return array;
        } catch (Throwable t) {
            Log.e("UIConfig", "getDefaultMenuData, e =" + t);
        }
        return null;
    }

    public static String getUIVersion() {
        return UI_VERSION;
    }
}
